﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace SilverLight.Training
{
    public partial class Menu : UserControl
    {
        public Menu()
        {
            InitializeComponent();
        }

        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            HyperlinkButton button = sender as HyperlinkButton;
            if (button != null)
                Navigation.Silverlight.NavigationManager.NavigateTo(button.NavigateUri);
        }
    }
}
